<?php

namespace Model;
use Lib\Injector;

/**
 * Class Model
 * @package Model
 * 
 * @property-read \Lib\Core $core
 */
abstract class Model extends Injector {
    static $instance=null;

    /**
     * @return static
     */
    public static function i() {
        if(!static::$instance) {
            static::$instance = new static(); 
        }
        
        return static::$instance;
    }
}